package io.github.zatter.qiniucorejava.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AiMapper {

    //查询配置
    @Select("select value from sys_setting where `key` = #{key}")
    String GetSetting(String key);

    //更改配置
    @Update("update sys_setting set `value` = #{value} where `key` = #{key};")
    void UpdateSetting(String key, String value);

}
